<div class="box-body">
    <form class="layui-form" action="{:url('system/settings/save')}" method="post" lay-filter="settings-form">
        <div class="layui-form-item">
            <label class="layui-form-label">账号</label>
            <div class="layui-input-block">
                <input type="text" readonly style="border: 0px;" value="{$account.username}" class="layui-input">
                <input type="hidden" name="account_id" value="{$account.account_id}" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">同步方式</label>
            <div class="layui-input-block">
                <select name="is_auto_sync" lay-search>
                    <option value="">请选择</option>
                    {foreach $auto as $k=>$s}
                    <option {if $account.settings.is_auto_sync==$s}selected{/if} value="{$k}">{$s}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">小时同步一次</label>
            <div class="layui-input-block">
                <input type="number" name="hours" value="{$account.settings.hours|default=1}" placeholder="多少小时同步一次" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">同步小时内订单</label>
            <div class="layui-input-block">
                <input type="number" name="auto_sync_hours" value="{$account.settings.auto_sync_hours|default=1}" placeholder="同步多少小时内订单" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">同步状态</label>
            <div class="layui-input-block">
                <select name="status" lay-search>
                    <option value="">请选择</option>
                    {foreach $status as $k=>$s}
                    <option {if $account.settings.status==$s}selected{/if} value="{$k}">{$s}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" name="remark" value="{$account.settings.remark}" placeholder="备注说明" class="layui-input">
            </div>
        </div>
        <input type="hidden" name="settings_id" value="{$account.account_id}"/>
    </form>
</div>
